package config

import "fmt"

type QQ struct {
	APPID    string `json:"appid" yaml:"app_id"`
	key      string `json:"key" yaml:"key"`
	Redirect string `json:"redirect" yaml:"redirect"` //登陆之后的回调地址
}

func (q QQ) GetPath() string {
	if q.key == "" || q.APPID == "" || q.Redirect == "" {
		return ""
	}
	return fmt.Sprintf("https://graph.qq.com/oauth2.0/show?which=Login?display=pc&response_type=code&client_id=%s&redirect_uri=%s", q.APPID, q.Redirect)
}
